package com.example.jhq.nfcreader.QRCODE;

import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;

import com.example.jhq.nfcreader.R;
import com.example.qrlibrary.qrcode.activity.DefaultQRScanActivity;
import com.tbruyelle.rxpermissions2.RxPermissions;

public class QRCodeActivity extends DefaultQRScanActivity {


    @Override
    protected void onAlbumResult(int requestCode, int resultCode, String recode) {
        Bundle bundle = new Bundle();
        bundle.putString("result",recode);
        startActivity(new Intent(QRCodeActivity.this,ResultActivity.class).putExtras(bundle));
        finish();
    }

    @Override
    protected void handleDecodeResult(String rawResult, Bundle bundle) {
        bundle.putString("result",rawResult);
        startActivity(new Intent(QRCodeActivity.this,ResultActivity.class).putExtras(bundle));
        finish();
    }

    @Override
    protected void initCustomViewAndEvents() {

    }
}
